package com.dmgis;

import cn.hutool.core.lang.Snowflake;
import cn.hutool.core.util.IdUtil;
import lombok.extern.slf4j.Slf4j;

/**
 * @author: xwxc
 * @description:
 * @date: 2024/9/27
 * @version: 1.0
 */
public class Baihe {
    @org.junit.Test
    public void test(){
        Snowflake snowflake = IdUtil.getSnowflake(1, 1);
        long id = snowflake.nextId();
        String idStr = Long.toString(id);
        System.out.println("生成的36位纯数字ID：" + idStr);
    }
}
